<?php

function abee_renderMetabox($post) {

    // Use nonce for verification
//    wp_nonce_field(plugin_basename(__FILE__), 'abee_nonce');
    
    //read values from db
    $value = get_post_meta($post->ID, '_abee_viewtitle', true);

    // The actual fields for data entry
    echo '<label for="abee_viewpagetitle">';
    echo 'Wyświetlanie tytułu strony';
    echo '</label> ';
    ?>
    <select name="abee_viewpagetitle" id="abee_viewpagetitle">
        <option value="1">Tak</option>
        <option value="0" <?php if($value === '0' ) echo 'selected="selected"'; ?> >Nie</option>
    </select>
    <?php
}
?>
